Geospatial Analysis with SQL by Bonny P McClain
Author:Bonny P McClain
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2022-12-26T00:00:00+00:00
Figure 4.20 â Reviewing the table catalog in pgAdmin
Understanding how to query datasets with SQL is the first step in introducing prediction models to the database. The execution of these properties will be expanded on as our journey continues.
Exploring the below_poverty_censustract data for Los Angeles County, I want to be able to isolate a tract and explore neighboring tracts. Location and distance might hold clues for exploring marginalized communities or populations living below the poverty line.
Looking for values to explore, I am exploring tracts with a high percentage of the population living below the poverty level. Running the following code to order the data by descending values will help me to find the higher percentages:
SELECT * FROM ch4.below_poverty_censustract ORDER BY below_fpl_pct DESC
I identified the tract of interest by tract number and queried any tracts that intersect. ST_Intersects compares two geometries and returns true if they have any point in common. The following code was written into the query editor in QGIS. Execute the code and name the query layer in the box in Figure 4.21:
SELECT * FROM ch4.below_poverty_censustract WHERE ST_Intersects (ch4.below_poverty_censustract.geom, (SELECT geom FROM ch4.below_poverty_censustract WHERE "tract" = '06037980014'))
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Historic | Information Systems |
Regional |
Man-made Catastrophes and Risk Information Concealment by Dmitry Chernov & Didier Sornette(4763)
The Revenge of Geography: What the Map Tells Us About Coming Conflicts and the Battle Against Fate by Kaplan Robert D(3608)
Zero Waste Home by Bea Johnson(3303)
COSMOS by Carl Sagan(2964)
In a Sunburned Country by Bill Bryson(2959)
Good by S. Walden(2926)
The Fate of Rome: Climate, Disease, and the End of an Empire (The Princeton History of the Ancient World) by Kyle Harper(2446)
Camino Island by John Grisham(2397)
A Wilder Time by William E. Glassley(2369)
Organic Mushroom Farming and Mycoremediation by Tradd Cotter(2316)
Human Dynamics Research in Smart and Connected Communities by Shih-Lung Shaw & Daniel Sui(2184)
The Ogre by Doug Scott(2126)
Energy Myths and Realities by Vaclav Smil(2073)
The Traveler's Gift by Andy Andrews(2022)
Inside the Middle East by Avi Melamed(1948)
Birds of New Guinea by Pratt Thane K.; Beehler Bruce M.; Anderton John C(1919)
Ultimate Navigation Manual by Lyle Brotherton(1773)
A History of Warfare by John Keegan(1726)
And the Band Played On by Randy Shilts(1628)